import ajax from './request'
/** oss **/
export const ossCallback = params => ajax.request('/mini/oss/ossCallback', params); //osscallback
export const ossPolicy = params => ajax.request('/mini/oss/ossPolicy', params); //获取oss签名

/** 声网录制 **/
export const videoStartOrEnd = params => ajax.request('/mini/inquiryLog/videoStartOrEnd', params); //视频开始录制与结束

/* 字典模块 */
export const getUtilDictionariesData = id => ajax.request('/mini/utilDictionariesData/getUtilDictionariesData', {dictionariesTypeId: id}); //获取字典数据

/**登陆模块 **/
export const retrievePassword = params => ajax.request('/mini/login/retrievePassword', params); //用户找回密码
export const userRegister = params => ajax.request('/mini/login/userRegister', params); //用户注册
export const userLogin = params => ajax.request('/mini/login/login', params); //统一三种角色登陆接口
export const judgeUser = params => ajax.request('/mini/login/judgeUser', params); //判断用户类型
export const outLogin = params => ajax.request('/mini/outLogin/out', params); //登出
export const phoneCaptcha = params => ajax.request('/mini/captcha/phoneCaptcha', params); //获取短信验证码
export const captcha = params => ajax.request('/mini/captcha/captcha', params); //获取图形验证码
export const userAuthorization = params => ajax.request('/mini/login/userAuthorization', params); // 授权登陆
export const getSessionKey = params => ajax.request('/mini/login/getSessionKey', params); // 通过code获得sessionKey



/*** 首页 ***/
export const getBannerList = (params) => ajax.request('/mini/banner/getBannerList', params, true); // 首页轮播图
export const getHomeDoctorList = (params)=> ajax.request('/mini/doctorInfo/getHomeDoctorList', params, true); // 首页医生列表
export const getOnlineDoctorList = params => ajax.request('/mini/doctorInfo/getOnlineDoctorList', params); // 获取在线医生列表
export const getDepartmentListPc = params => ajax.request('/mini/index/utilDepartment/getDepartmentListPc', params); // 首页科室列表
export const getDoctorDetail = params => ajax.request('/mini/doctorInfo/getDoctorInfo', params, true); // 医生详情
export const getDoctorEvaluateList = params => ajax.request('/mini/doctorInfo/getDoctorEvaluateList', params); // 医生评价列表
export const userEndInquiry = (params, load = false) => ajax.request('/mini/inquiryPatientInfo/endInquiry', params, load); // 结束正在问诊中的订单


/*** 首页控制借口 ***/
export const getActivity = params => ajax.request('/mini/home/getActivity', params); // 获取活动专栏信息
export const getConstitution = params => ajax.request('/mini/home/getConstitution', params); // 获取活动专栏信息
export const getConfigureName = params => ajax.request('/mini/banner/getConfigureName', params); // 获取活动专栏信息

/*** 搜索页面 ***/
export const addUserSearchLog = params => ajax.request('/mini/userSearch/addUserSearchLog', params); // 新增搜索记录
export const deleteUserSearchLog = params => ajax.request('/mini/userSearch/deleteUserSearchLog', params); // 删除所有搜索记录
export const getUserSearchLogList = params => ajax.request('/mini/userSearch/getUserSearchLogList', params); // 获取所有搜索记录

/*** 个人中心 ***/
//医生
export const getDoctorInfo = params => ajax.request('/mini/userInfo/doctorInfo', params); // 获取医生信息
export const updateDoctorHeadImg = params => ajax.request('/mini/userInfo/updateDoctorHeadImg', params);// 更新医生头像
export const updateDoctorInfo = params => ajax.request('/mini/userInfo/updateDoctorInfo', params);// 更新医生信息
export const updateDoctorSign = params => ajax.request('/mini/userInfo/updateDoctorSign', params); // 更新医生签名图片
export const updatePassword = params => ajax.request('/mini/userInfo/updatePassword', params); // 修改账户密码-医生和患者公用
export const receivePatients = params => ajax.request('/mini/userInfo/receivePatients', params); // 网络接诊

//个人
export const getUserInfo= params => ajax.request('/mini/userInfo/userInfo', params); // 获取个人患者信息
export const updateUserInfo= params => ajax.request('/mini/userInfo/updateUserInfo', params); // 个人患者更新信息
export const updateUserHeadImg = params => ajax.request('/mini/userInfo/updateUserHeadImg', params);// 个人更新头像
/** 我的处方，我的问诊 **/
export const getPatientPrescriptionList= params => ajax.request('/mini/patientPrescription/getPatientPrescriptionList', params); // 我的处方列表
export const getInterrogationHistoryList= params => ajax.request('/mini/myInterrogation/getInterrogationHistoryList', params); // 个人问诊历史列表
export const getPrescriptioninfo= params => ajax.request('/mini/myInterrogation/getPrescriptioninfo', params); // 我的处方列表
export const getInterrogationHistoryinfo= params => ajax.request('/mini/myInterrogation/getInterrogationHistoryinfo', params); // 问诊历史详情
export const getInterrogationDrugList = params => ajax.request('/mini/myInterrogation/getDrugList', params); // 用药药品列表
export const getStoreList = params => ajax.request('/mini/prescription/getStoreList',params);    //查询药店列表


/*** 医生值班安排 ***/
export const getDoctorSchedulingListPc = params => ajax.request('/mini/doctorScheduling/getDoctorSchedulingListPc', params); // 获取医生排班

/*** 医生网络问诊 ***/
export const getInquiryInspectionOpinionList = params => ajax.request('/mini/medicalRecord/getInquiryInspectionOpinionList', params); // 检验检查
export const getHealthGuidanceList = params => ajax.request('/mini/medicalRecord/getHealthGuidanceList', params); // 健康指导意见单
export const getHospitalizationList = params => ajax.request('/mini/medicalRecord/getHospitalizationList', params); // 住院建议书
export const getOpenPrescriptions = params => ajax.request('/mini/medicalRecord/getOpenPrescriptions', params); // 已开处方
export const getPharmacistFeedbackList = params => ajax.request('/mini/medicalRecord/getPharmacistFeedbackList', params); // 药师审方反馈
export const getUserRecords = params => ajax.request('/mini/medicalRecord/getUserRecords', params); // 用户病历
export const getNewsList = (params, load= false) => ajax.request('/mini/news/getNewsList', params, load); // 消息中心
export const getNewsInfo = params => ajax.request('/mini/news/getNewsInfo', params); // 消息中心-详情
export const getApplicationFormList = params => ajax.request('/mini/medicalRecord/getApplicationFormList', params); // 申请单
export const getMysubscriber = (params, load = false) => ajax.request('/mini/mysubscriber/getMysubscriber', params, load); // 我的用户
export const getDoctorOnlieConsultainfo = params => ajax.request('/mini/doctoronlineconsulta/getDoctorOnlieConsultainfo', params); // 查询医生详情
export const queryHistoryInterrogation = params => ajax.request('/mini/doctoronlineconsulta/queryHistoryInterrogation', params); // 问诊统计
export const getPrescriptionDrugDetail = params => ajax.request('/mini/medicalRecord/getPrescriptionDrugDetail', params); // 查看处方用药详情
export const getPrescriptionDetail = params => ajax.request('/mini/medicalRecord/getPrescriptionDetail', params); // 查看处方用药详情
export const revocationHospitalization = params => ajax.request('/mini/medicalRecord/revocationHospitalization', params); // 病例管理-住院建议书-撤销
export const sendNews = params => ajax.request('/mini/mysubscriber/sendNews', params); // 我的用户-发送消息
export const editorPrescription = params => ajax.request('/mini/medicalRecord/editorPrescription', params); // 病例管理-处方历史-编辑处方
export const updatePrescription = params => ajax.request('/mini/medicalRecord/updatePrescription', params); // 病例管理-处方历史-编辑处方-生成处方

/*** 患者网络问诊 ***/
export const getApplicationFormListP = params => ajax.request('/mini/prescriptionhistory/getApplicationFormList', params); // 病例管理-申请单
export const getHealthGuidanceListP = params => ajax.request('/mini/prescriptionhistory/getHealthGuidanceList', params); // 健康指导意见单
export const getHospitalizationListP = params => ajax.request('/mini/prescriptionhistory/getHospitalizationList', params); // 住院建议书
export const getInquiryInspectionListP = params => ajax.request('/mini/prescriptionhistory/getInquiryInspectionOpinionList', params); // 病例管理-检验检查意见单
export const getPrescriptionHistoryP = params => ajax.request('/mini/prescriptionhistory/getPrescriptionHistory', params); // 查询处方历史列表
export const getChatRecordList = params => ajax.request('/mini/dectorEndInquiry/getChatRecordList', params); // 获取聊天历史
export const getConsultChatRecordList = params => ajax.request('/mini/calculation/rsc-chat-history', params); // 获取聊天历史


/*** 用户指南 协议 ***/
export const getQuestionsListPc = params => ajax.request('/mini/utilQuestions/getQuestionsListPc', params); //获取指南问答列表
export const getPrivacyPolicy = params => ajax.request('/mini/utilInitData/getPrivacyPolicy', params); //获取隐私政策
export const getUserAreement = params => ajax.request('/mini/utilInitData/getUserAreement', params); //获取用户协议
export const getAgreement = params => ajax.request('/mini/utilInitData/getAgreement', params); //获取协议




/*** 聊天室 ***/
export const getAllInfo = params => ajax.request('/mini/inquiryLog/getAllInfo', params); //网络问诊-获取问诊详情
export const updateInquiryPaidType = params => ajax.request('/mini/inquiryPatientInfo/updateInquiryPaidType', params); //修改问诊付费类型
export const updateInquiryPatientInfo = params => ajax.request('/mini/inquiryPatientInfo/updateInquiryPatientInfo', params); //修改患者、医生信息
export const getDoctorNormalConsultationList = params => ajax.request('/mini/doctorNormalConsultation/getDoctorNormalConsultationList', params); //获取问诊术语列表
export const addInquiryLogHospitalization = params => ajax.request('/mini/inquiryLog/addInquiryLogHospitalization', params); //在线问诊-医生添加住院建议
export const updateDetailsEntrust = params => ajax.request('/mini/inquiryLog/updateDetailsEntrust', params); //在线问诊-医嘱-修改
export const deleteInquiryLogHospitalization = params => ajax.request('/mini/inquiryLog/deleteInquiryLogHospitalization', params); //在线问诊-医生撤销住院建议
export const getIcdList = params => ajax.request('/mini/inquiryLog/getIcdList', params); //诊断列表获取
export const getUserRecordsInfo = params => ajax.request('/mini/medicalRecord/getUserRecordsInfo', params, true); //病例管理-获取病历首页
export const getInquiryLogByUserIdList = params => ajax.request('/mini/inquiryLog/getInquiryLogByUserIdList', params); //网络问诊-医生查看患者病历
export const getTemplate = params => ajax.request('/mini/inquiryLog/getTemplate', params); //获取问诊模板(主诉、现病史、既往史)
export const newTemplate = params => ajax.request('/mini/inquiryLog/newTemplate', params); //问诊新增模板(主诉、现病史、既往史)
export const deleteTemplate = params => ajax.request('/mini/inquiryLog/deleteTemplate', params); //问诊删除模板(主诉、现病史、既往史)
export const updateAllergyHistory = params => ajax.request('/mini/inquiryLog/updateAllergyHistory', params); //药物过敏史-保存
export const updateDiagnosis = params => ajax.request('/mini/inquiryLog/updateDiagnosis', params); //诊断-保存
export const updateInquiryLog = params => ajax.request('/mini/inquiryLog/updateInquiryLog', params); //主诉、现病史、既往史-保存
export const getChatImages = params => ajax.request('/mini/inquiryInspectionOpinion/getChatImages', params); //患者上传的图片列表
export const getEstablishPdf = params=> ajax.request('/mini/pdf/getEstablishPdf', params, true); //获取pdf、img
export const noPrescriptionList = (params, load = false) => ajax.request('/mini/inquiryLog/noPrescriptionList', params, load); //未开方原因下拉列表
export const addNoPrescription = (params, load = false) => ajax.request('/mini/inquiryLog/addNoPrescription', params, load); //填写未开方原因
export const endInquiry = (params, load = false) => ajax.request('/mini/dectorEndInquiry/endInquiry', params, load); //医生-結束成功问诊
export const unSuccessfulInquiry = (params, load = false) => ajax.request('/mini/dectorEndInquiry/unSuccessfulInquiry', params, load); // 医生-結束未成功问诊

 //病种管理
export const getDiseaseNameList = (params, load = false) => ajax.request('/mini/utilDiseaseName/getDiseaseNameList', params, load); // 医生-获取病种名称
export const updateDiseaseName = (params, load = false) => ajax.request('/mini/inquiryPatientInfo/updateDiseaseName', params, load); // 医生-修改病种




/** 开药 */
export const getDrugFrequencyList = params => ajax.request('/mini/prescription/getDrugFrequencyList', params); //获取频率列表
export const getDrugUsageList = params => ajax.request('/mini/prescription/getDrugUsageList', params); //药品用法列表
export const deletePrescription = params => ajax.request('/mini/prescription/deletePrescription', params); //处方模块（医生端）—删除处方


/* 健康指导 */
export const addHealthGuidanceModel = params => ajax.request('/mini/inquiryLogHealthGuidance/addHealthGuidanceModel', params); //健康指导-新增个人模板
export const addInquiryLogHealthGuidance = params => ajax.request('/mini/inquiryLogHealthGuidance/addInquiryLogHealthGuidance', params); //健康指导-生成意见单
export const delHealthGuidanceModel = params => ajax.request('/mini/inquiryLogHealthGuidance/delHealthGuidanceModel', params); //健康指导-删除个人模板
export const deleteInquiryLogHealthGuidance = params => ajax.request('/mini/inquiryLogHealthGuidance/deleteInquiryLogHealthGuidance', params); //健康指导-作废意见单
export const getHealthGuidanceModelDetail = params => ajax.request('/mini/inquiryLogHealthGuidance/getHealthGuidanceModelDetail', params); //健康指导-查看模板
export const getHealthGuidanceModelList = params => ajax.request('/mini/inquiryLogHealthGuidance/getHealthGuidanceModelList', params); //健康指导-获取模板列表
export const getInquiryLogHealthGuidanceList = params => ajax.request('/mini/inquiryLogHealthGuidance/getInquiryLogHealthGuidanceList', params); //获取问诊过程中已开健康指导意见单列表
export const viewInquiryLogHealthGuidance = params => ajax.request('/mini/inquiryLogHealthGuidance/viewInquiryLogHealthGuidance', params); //健康指导-查看意见单详情
export const getDiagnosisSpeciFicationList = params => ajax.request('/mini/kindsOfSpecification/getDiagnosisSpeciFicationList', params); //规范-诊断规范（分页）
export const getDrugSpeciFicationList = params => ajax.request('/mini/kindsOfSpecification/getDrugSpeciFicationList', params); //规范-药品规范(分页)
/* 处方模块 */
export const addPersonalDrug = params => ajax.request('/mini/prescription/addPersonalDrug', params); //处方模块（医生端）保存个人用药 传药品Id参数
export const deletePersonalDrug = params => ajax.request('/mini/prescription/deletePersonalDrug', params); //处方模块（医生端）删除个人用药 传drugTemplateId参数
export const deletePrescriptionTemplate = params => ajax.request('/mini/prescription/deletePrescriptionTemplate', params); //处方模块（医生端）—删除处方模板
export const getDrugClass = params => ajax.request('/mini/prescription/getDrugClass', params); //处方模块（医生端）—获取药品类型下拉
export const getDrugList = params => ajax.request('/mini/prescription/getDrugList', params); //处方模块（医生端）—用药（公用、个人、中药、西药通用）
export const medicineList = params => ajax.request('/mini/autonomousPrescription/medicineList', params); //处方模块（医生端）—用药（公用、个人、中药、西药通用）
export const medicineListchek = params => ajax.request('/mini/autonomousPrescription/chek', params); //医保库存判断
export const medicineGetById = params => ajax.request('/mini/autonomousPrescription/medicineGetById', params); //医保药品详情获取
export const getOpenedPrescription = params => ajax.request('/mini/prescription/getOpenedPrescription', params); //处方模块（医生）— 已开处方
export const getPrescriptionTemplateList = params => ajax.request('/mini/prescription/getPrescriptionTemplateList', params); //处方模块（医生端）—查询处方模板列表
export const treatmentPatientInfo = params => ajax.request('/mini/prescription/treatment', params); //处方模块（医生） — 接诊 id=inquiryPatientInfoId
export const getDrugSpeciFicationDetail = params => ajax.request('/mini/kindsOfSpecification/getDrugSpeciFicationDetail', params); //规范-药品规范-药品规范详情
export const viewDrugSpeciFication = params => ajax.request('/mini/kindsOfSpecification/viewDrugSpeciFication', params); //规范-药品规范-查看药品规范
export const getDrugInfo = params => ajax.request('/mini/prescription/getDrugInfo', params); //药品详情
export const getTheCalculationFormula = params => ajax.request('/mini/calculation/getTheCalculationFormula', params); //药品数量计算
export const addPrescription = params => ajax.request('/mini/prescription/addPrescription', params); //生成处方
export const addPrescriptionTemplate = params => ajax.request('/mini/prescription/addPrescriptionTemplate', params); //处方模块（医生端）—另存模板
export const getOpenedPrescriptionInfo = params => ajax.request('/mini/prescription/getOpenedPrescriptionInfo', params); //处方模块（医生）— 处方详情
export const isDrugDisable = params => ajax.request('/mini/inquiryLog/isDrugDisable', params); //查询药品是否被禁用


/** 测量数据 **/
export const getMeasureDataList = params => ajax.request('/mini/inquiryLog/getMeasureDataList', params); //网络问诊-获取测量数据列表
export const updateMeasureData = params => ajax.request('/mini/inquiryLog/updateMeasureData', params); //网络问诊-获取测量数据更新
export const addMeasureData = params => ajax.request('/mini/inquiryLog/addMeasureData', params); //网络问诊-获取测量数据添加
export const getMeasuringConditionList = params => ajax.request('/mini/measuringCondition/getMeasuringConditionList', params); //测量条件列表


/**  检验检查 */
export const getChecklistClassName = params => ajax.request('/mini/checklistClass/getChecklistClassName', params); //检验检查-检验检查分类列表
export const clickChecklistClass = params => ajax.request('/mini/checklist/clickChecklistClass', params); //点击查看检验检查或者查看下一级列表



/* 查看职业列表 */
export const getOccupationList = params => ajax.request('/mini/inquiryLog/getOccupationList', params); //查看职业列表


/* 患者问诊流程 */
export const cancel = params => ajax.request('/mini/prescription/cancel', params); // 处方模块（患者）— 取消排队 id=inquiryPatientInfoId
export const getInterrogationHistoryInfo = (params, load = false) => ajax.request('/mini/inquiryPatientInfo/getInterrogationHistoryInfo', params, load); // 发起问诊前-获取问诊历史
export const addConsultationFee = params => ajax.request('/mini/wxpay/addConsultationFee', params); // 创建订单
export const getConsultationFee = (params, load = false) => ajax.request('/mini/wxpay/getConsultationFee', params, load); // 获取问诊费订单
export const refund = params => ajax.request('/mini/wxpay/refund', params); // 退款
export const frozenOrder = params => ajax.request('/mini/wxpay/frozenOrder', params); // 冻结问诊费订单
export const addInquiryPatientInfo = params => ajax.request('/mini/inquiryPatientInfo/addInquiryPatientInfo', params);// 发起问诊前-问诊人信息填写（患者填写）
export const comment = params => ajax.request('/mini/inquiryLog/comment', params); // 评价-（患者）

/** 检验检查*/
export const addECGApplication = params => ajax.request('/mini/inquiryLogECGTemplate/addECGApplication', params); // 检验检查-医生新增模板一申请单
export const addCommonApplication = params => ajax.request('/mini/inquiryLogCommonTemplate/addCommonApplication', params); // 检验检查-医生新增模板二申请单
export const deleteCommonApplicationForm = params => ajax.request('/mini/inquiryLogCommonTemplate/deleteCommonApplicationForm', params); // 检验检查-删除模板二申请单
export const deleteECGApplicationForm = params => ajax.request('/mini/inquiryLogECGTemplate/deleteECGApplicationForm', params); // 检验检查-删除模板一申请单
export const addInspectionOpinion = params => ajax.request('/mini/inquiryInspectionOpinion/addInspectionOpinion', params); // 检验检查-医生开检验检查意见
export const deleteInspectionOpinion = params => ajax.request('/mini/inquiryInspectionOpinion/deleteInspectionOpinion', params); // 检验检查-删除检验检查意见单


/* 收货地址 */
export const addReceivingAddress = params => ajax.request('/mini/receivingAddress/addReceivingAddress', params, true); // 新增收货地址
export const delReceivingAddress = params => ajax.request('/mini/receivingAddress/delReceivingAddress', params); // 删除收货地址
export const getReceivingAddress = params => ajax.request('/mini/receivingAddress/getReceivingAddress', params); // 查询收货地址列表
export const updateReceivingAddress = params => ajax.request('/mini/receivingAddress/updateReceivingAddress', params); // 修改收货地址
export const setDeftAddress = params => ajax.request('/mini/receivingAddress/setDeftAddress', params); // 设置默认收货地址
export const getReceivingAddressInfo = params => ajax.request('/mini/receivingAddress/getReceivingAddressInfo', params); // 查询收货地址详情

/* 处方流转接口 */
export const getShopList = params => ajax.request('/mini/thirdParty/getShopList', params, true); // 互联网商店列表
export const orderDetail = params => ajax.request('/mini/thirdParty/orderDetail', params, true); // 获取一线大药房订单详情和状态
export const queryDeliveryInfo = params => ajax.request('/mini/thirdParty/queryDeliveryInfo', params, true); // 获取一线大药房物流信息
export const getPrescriptionOrder = params => ajax.request('/mini/prescriptionOrder/getPrescriptionOrder', params, true); // 创建订单
export const getOrderList = params => ajax.request('/mini/thirdParty/getOrderList', params, true); // 获取一线大药房订单列表
export const initiatePayment = params => ajax.request('/mini/prescriptionOrder/initiatePayment', params); // 付款
export const getIsPrescriptionOrder = params => ajax.request('/mini/prescriptionOrder/getIsPrescriptionOrder', params); // 查询是否创建订单
export const saveOrder = params => ajax.request('/mini/thirdParty/saveOrder', params); // 修改订单状态


/* 家庭医生 */
export const getFamilyDoctorList = params => ajax.request('/mini/myDoctor/getFamilyDoctorList', params); // 获取家庭医生列表
export const getMyDoctorList = params => ajax.request('/mini/myDoctor/getMyDoctorList', params); // 获取我的医生列表
export const concernDoctor = params => ajax.request('/mini/myDoctor/concernDoctor', params); // 关注医生
export const exceeds48hours = params => ajax.request('/mini/inquiryLog/determinewhetherthefamilydoctorserviceexceeds48hours', params); // 判断家庭医生服务是否超过48小时
export const getInquiryDialogue = params => ajax.request('/mini/myDoctor/getInquiryDialogue', params); // 获取我的医生-问诊记录对话
export const subscribeMessage = params => ajax.request('/mini/messagenotification/subscribeMessage', params); // 服务通知
export const getQRCode = params => ajax.request('/mini/doctoronlineconsulta/getQRCode', params); // 生成医生二维码
export const chatRecordLog = params => ajax.request('/mini/mysubscriber/doctor-patient-chat-record-log', params, true); // 医患聊天记录



/* 体质报告 */
export const getAcquireReportList = params => ajax.request('/mini/smart/getAcquireReportList', params); // 体质报告列表
export const questionnaire = params => ajax.request('/mini/smart/questionnaire', params, true); // 体质问卷获取
export const corporeityResult = params => ajax.request('/mini/smart/corporeityResult', params, true); // 体质结果获取
export const acquireReport = params => ajax.request('/mini/smart/acquireReport', params,true); // 体质报告获取


// 就诊人管理
export const addPatientInfo = params => ajax.request('/mini/patientInfo/addPatientInfo', params,true); // 新增就诊人
export const deleteInterrogationHistoryInfo = params => ajax.request('/mini/patientInfo/deleteInterrogationHistoryInfo', params,true); // 删除就诊人
export const getInquiryPatientInfoList = params => ajax.request('/mini/patientInfo/getInquiryPatientInfoList', params,true); // 就诊人列表
export const updatePatientInfo = params => ajax.request('/mini/patientInfo/updateInquiryPatientInfo', params,true); // 修改就诊人
export const getInquiryPatientInfoById = params => ajax.request('/mini/patientInfo/getInquiryPatientInfoById', params,true); // 就诊人详情
export const queryMedicalCardByinquiryPatientId = params => ajax.request('/mini/inquiryPatientInfo/queryMedicalCardByinquiryPatientId', params,true); // 廉江his--判断就诊人是否存在就诊卡号




// 廉江his
export const getDictInfo = params => ajax.request('/mini/lianjiang/his/getDictInfo', params,true); // HIS获取用法用量
export const getHisDrugInfoList = params => ajax.request('/mini/lianjiang/his/getHisDrugInfoList', params,true); // HIS获取药品列表（西药）
export const checkPrice = params => ajax.request('/mini/lianjiang/his/checkPrice', params); // HIS处方校验库存
export const getTraditionalDrugInfo = params => ajax.request('/mini/lianjiang/his/getTraditionalDrugInfo', params,true); // HIS获取药品列表（中药）
export const getClinicHistoryList = params => ajax.request('/mini/lianjiang/his/getClinicHistoryList', params,true); // HIS获取历史就诊记录
export const getCflzHisPayMentInfoList = params => ajax.request('/mini/lianjiang/his/getCflzHisPayMentInfoList', params,true); // HIS获取院内药房订单列表
export const addCflzHisPayMentInfo = params => ajax.request('/mini/lianjiang/his/addCflzHisPayMentInfo', params,true); // HIS创建院内药房订单
export const getPrescriptionInfoById = params => ajax.request('/mini/lianjiang/his/getPrescriptionInfoById', params,true); // HIS获取院内药房订单详情
export const addOrder = params => ajax.request('/mini/lianjiang/his/addOrder', params,true); // HIS咨询问诊预约 (挂号)
export const getMedicalRecordDetail = params => ajax.request('/mini/lianjiang/his/getMedicalRecordDetail', params,true); // HIS历史病历详情
export const getClinicHistoryInfo = params => ajax.request('/mini/lianjiang/his/getClinicHistoryInfo', params,true); // HIS历史病历详情
export const getHISPdfOrImg = params => ajax.request('/mini/lianjiang/his/getHISPdfOrImg', params,true); // HIS获取处方PEF或IMG
export const getHisDrugInfo = params => ajax.request('/mini/lianjiang/his/getDrugInfo', params,true); // HIS获取药品详情


// 自主开方
export const doctorUpdateInquiryPatientInfo = params => ajax.request('/mini/autonomousPrescription/doctorUpdateInquiryPatientInfo', params,true); // 修改就诊人
export const doctorAddOrupdatePatientInfo = params => ajax.request('/mini/autonomousPrescription/doctorAddOrupdatePatientInfo', params,true); // 发起问诊
export const LoginByIdCard = params => ajax.request('/mini/login/LoginByIdCard', params,true); // 用户身份证号码登录
export const queryInquiryLogPrescriptionHistory = params => ajax.request('/mini/autonomousPrescription/queryInquiryLogPrescriptionHistory', params,true); // 自主开方--历史记录
export const autonomousPrescriptionEndInquiry = params => ajax.request('/mini/autonomousPrescription/autonomousPrescriptionEndInquiry', params,true); // 自主开方-(未成功问诊or成功问诊)-结束问诊
export const getDoctorIncompleteInfo = params => ajax.request('/mini/autonomousPrescription/getDoctorIncompleteInfo', params,true); // 获取上次未完成的问诊
export const judgeIsOrder = params => ajax.request('/mini/prescriptionOrder/judgeIsOrder', params,true); // 登录后判断是否已创建药品订单
export const querLetterOfConsent = params => ajax.request('/mini/utilInitData/querLetterOfConsent', params,true); // 外购药知情同意书
export const getSearchDoctorInquiryPatientInfoList = params => ajax.request('/mini/autonomousPrescription/getSearchDoctorInquiryPatientInfoList', params,true); // 医生模糊搜索就诊人相关信息

// esgin ca实名认证
export const checkCertification = params => ajax.request('/mini/ca-esgin/checkCertification', params,true); // 检查是否实名认证
export const individualTelecom3Factors = params => ajax.request('/mini/ca-esgin/individualTelecom3Factors', params,true); // 3要素核身认证
export const qryPersonSeals = params => ajax.request('/mini/ca-esgin/qryPersonSeals', params,true); // 短信验证码校验



// 订单中心
export const queryInquiryOrderListPage = params => ajax.request('/mini/order/queryInquiryOrderListPage', params,true); // 问诊订单列表-分页
export const queryTransactionListPage = params => ajax.request('/mini/order/queryTransactionListPage', params,true); // 交易记录列表-分页
